public class Giant implements Comparable<Giant>{
    private String name;
    private double height;
    public Giant(String name,double height){
        this.name = name;
        this.height = height;
    }
    public  String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setHeight(double height){
        this.height = height;
    }
    public double getHeight(){
        return height;
    }

    @Override
    public int compareTo(Giant o) {
        if(height > o.height)
            return 1;
        else
            return -1;
    }

    public String toString(){
        return "name；" + name + ' ' + "height；" + height;
    }
}
